import axios from 'axios'
const _axios = axios.create({
  baseURL: 'http://pcapi-xiaotuxian-front-devtest.itheima.net'
})
// 请求拦截器
_axios.interceptors.request.use(
  config => {
    return config
  },
  error => {
    return Promise.reject(error)
  }
)
// 响应拦截器
_axios.interceptors.response.use(
  res => {
    return res
  },
  error => {
    return Promise.reject(error)
  }
)

export default _axios
